
package ro.qi.framework.sys.security.entities;

import ro.qi.framework.sys.entities.Entity;

public class SecurityGroupMandatoryACLCollection extends Entity {

	public SecurityGroupMandatoryACLCollection(int groupId) {
		setGroupId(groupId);
		select();
	}

	public void setGroupId(int value) {
		setValue("groupId", value);
	}

	public int getGroupId() {
		return getIntValue("groupId");
	}

	public int getCollectionSize() {
		return getCollectionSize("accesses");
	}

	public int getApplicationId(int index) {
		return getCollectionIntValue("accesses", "applicationId", index);
	}

	public int getAccessId(int index) {
		return getCollectionIntValue("accesses", "accessId", index);
	}

	public int getAccessMask(int index) {
		return getCollectionIntValue("accesses", "accessMask", index);
	}

}
